package com.shu.test.jaxb;

import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;  
  
/** 
 * @author  
 * @create  
 */  
@XmlAccessorType(XmlAccessType.FIELD)  
@XmlRootElement  
@XmlType(name = "student", propOrder = { "name", "age", "lever", "id" })  
public class Student {  
  
    @XmlElement(required = true)  
    private String name;  
  
    @XmlElement(name = "age", required = true)  
    private Integer age;  
  
    @XmlElement  
    private String lever;  
  
    @XmlAttribute  
    private Integer id;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getLever() {
		return lever;
	}

	public void setLever(String lever) {
		this.lever = lever;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "Student [name=" + name + ", age=" + age + ", lever=" + lever + ", id=" + id + "]";
	}  
  
}
